import { _decorator, assetManager, Component, director, game, Game, JsonAsset, WebView } from 'cc';
import SdkTool from '../Core/Sdk/SdkTool';
import { SocketManager } from './module/socket/SocketManager';
import { GameModels } from './module/socket/GameModels';
import { LayerManager } from '../Core/Layer/LayerManager';
import GameScenes from './module/scene/GameScenes';
import TimerMgr from '../Core/Timer/TimerMgr';
import { LocalizationManager } from '../Core/Language/LocalizationManager';
import WindowObject from './module/window/WindowObject';
import ModuleWindow from './module/window/ModuleWindow';
import UrlEnum from '../Core/Res/UrlEnum';

export class Main {
    public static enterGame(): void {
        // game.frameRate = 30;
        /**初始化多语言配置 */
        // LocalizationManager.ins.init();
        /**初始化层级管理器 */
        LayerManager.ins.init();
        /**初始化socke */
        SocketManager.ins.init();
        /**初始化socke消息模块 */
        GameModels.init();
        /**场景管理器 */
        GameScenes.init();
        /**初始化界面管理器 */
        ModuleWindow.ins.init();
        /**初始化窗口定义 */
        WindowObject.ins.init();
        /**初始化计时器管理器 */
        TimerMgr.ins.init();
        /**初始化sdk */
        SdkTool.ins.initSdk();
        GameScenes.enterScene(GameScenes.login);
    }
}


